//
//  GruphotoAppDelegate.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/3/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import "MBProgressHUD/MBProgressHUD.h"
#import <FacebookSDK/FacebookSDK.h>

@class User;

@interface GruphotoAppDelegate : UIResponder <UIApplicationDelegate, CLLocationManagerDelegate, MBProgressHUDDelegate> {
    MBProgressHUD *progressHud;
    CLLocationManager *locationManager;
    
    User *loggedInUser;
}

@property (strong, nonatomic) UIWindow *window;
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, retain) CLLocation *currentLocation;

@property (nonatomic, retain) User *loggedInUser;

/**
 * Shared delegate
 */
+ (GruphotoAppDelegate *)sharedDelegate;
/**
 * MBProgressHUD
 */
- (void)showHUDWithStatus:(NSString *)status;
- (void)setHUDStatus:(NSString *)status;
- (void)hideHUD;

/**
 * Facebook
 */
- (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI;
+ (NSString *)FBErrorCodeDescription:(FBErrorCode)code;

@end
